<?php
/**
 * @desc 获取首页banner模型
 * @Author quyang
 * @update 2016-11-23
 */
namespace Home\Model;
use Think\Model;
class BannerModel extends BaseModel{
    //设置数据库为tp_banner
    protected $tableName = 'tp_banner';
    
    /**
     * @desc 获取首页banner
     * @Author quyang
     * @update 2016-11-23
     */
    public function banner($where){
        $arr = $this
                ->where($where)
                ->getField('
                    f_banner_pic_url as fBannerPicUrl,
                    f_url as fUrl,
                    f_banner_des as fBannerDes,
                    f_id as fId,
                    f_type as fType
                    ');
        return $arr;
    }
}